var $sendEmail = $('.sendEmail');
var $appointment = $('.appointment');

$sendEmail.on('click', function () {
  $.prompt({
    title: '发送样表到邮箱',
    input: 'xx@xx.com',
    empty: false, // 是否允许为空
    onOK: function (input) {
      //点击确认
    },
    onCancel: function () {
      //点击取消
    }
  });
})

var $clickImg = $('img.canClick');
var $imgDialog = $('.imgDialog');

$clickImg.on('click', function(e) {
  var $target = $(e.target);
  var imgSrc = $target.attr('src');
  $imgDialog.find('img').attr('src', imgSrc);
  $imgDialog.addClass('active');
});

$imgDialog.on('click', function(e) {
  var $target = $(e.target);
  $imgDialog.removeClass('active');
})